package com.bauer.framework.autumn.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author ：rui.wei
 * @Date ：Created in 10:08 2018/8/10
 * @Description：
 */
public class HttpUtils {


    public static final String HTTP_METHOD_POST = "POST";

    public static final String HTTP_METHOD_GET = "GET";


    /**
     * 获取http请求的method
     * @param request
     * @return
     */
    public static String getMethod(HttpServletRequest request){
        return request.getMethod();
    }


    public static String getPath(HttpServletRequest request){
        return request.getRequestURI();
    }

}
